<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%msg_code}}".
 *
 * @property int $id
 * @property string $code
 * @property string $mobile
 * @property int $uid
 * @property int $create_time
 */
class MsgCodeModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%msg_code}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['create_time','uid'], 'integer'],
            [['code','mobile'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'code' => 'Code',
            'mobile'=>'Mobile',
            'uid' => 'Uid',
            'create_time' => 'Create Time',
        ];
    }
}

